/**
 * 我的接口
 */
const http = uni.$u.http

// 获取手机号
export const getWxPhone = (data) => http.post('/mini_front/get_wx_phone/', data, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded'
	}
})

// 登录
export const login = (data) => http.post('/mini_front/login/', data, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded'
	},
  custom: {
    customLoad: true,
  }
})
// 保存
export const ownInfoSave = (data) => http.post('/mini_front/own_info_save/', data, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded',
	}
})
// 回显
export const ownInfo = (data) => http.post('/mini_front/own_info/', data, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded',
	}
})
// 我的群聊
export const ownDetail = (data) => http.post('/mini_front/own_detail/', data, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded',
	}
})
// 我的群聊统计
export const ownGroup = (data) => http.post('/mini_front/own_group/', data, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded',
	}
})
// 解绑微信
export const ownUnbind = (data) => http.post('/mini_front/own_unbind/', data, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded',
	}
})
// 退出登录
export const logoutWX = (data) => http.post('/mini_front/logout/', data, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded',
	}
})
